home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / prog / mysteryc.arj / EXH41.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-10  |  254 b   |  13 lines

  1. #include <stdio.h>
  2. main()
  3. {
  4. int number;
  5. printf("Please enter a number ");
  6. scanf("%d", &number);
  7. switch(number)
  8. {case (1) : printf("This is case 1");
  9. case (2) : printf("This is case 2");
  10. case (3) : exit();
  11. default: printf("Another case");}
  12. }
  13.